package com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer;

import com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer.dto.AppletCustomerDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer.dto.AppletCustomerListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer.param.AppletCustomerCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer.param.AppletCustomerListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.customer.param.AppletCustomerUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * AppletCustomerCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/applet/customer/fallback")
public class AppletCustomerCloudServiceFallback implements AppletCustomerCloudService {

    @Override
    public AppletCustomerListCloudDto list(AppletCustomerListCloudParam param) {
        return new AppletCustomerListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public AppletCustomerDetailCloudDto detail(String customerPrimaryKey) {
        return new AppletCustomerDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(AppletCustomerCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(AppletCustomerUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

}
